﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrdenCompraRecepGrid.ascx.cs" 
Inherits="UILGestion.RecepcionDoc.OrdenCompraRecepGrid" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>
<script src="../../Scripts/controlGrid.js" type="text/javascript"></script>
<link href="../../css/main.css" rel="stylesheet" type="text/css" />

<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server"  >
            <tr id="Tr1" runat="server" class="ms-crm-List-Header">
                <th id="Th1" runat="server"  >
     

                    <asp:LinkButton ID="lb2" CommandName="Sort" ForeColor="Blue" CommandArgument="numDocumento" runat="server">NUMERO</asp:LinkButton>
                </th>
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" ForeColor="Blue" CommandArgument="fechaEmision" runat="server">FECHA</asp:LinkButton>
                </th>
                <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" ForeColor="Blue" CommandArgument="fechaPedido" runat="server">FECHA ENTREGA</asp:LinkButton>
                </th>
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" ForeColor="Blue" CommandArgument="proveedor" runat="server">PROVEEDOR</asp:LinkButton>
                </th>
                <th id="Th4" runat="server">
                    <asp:LinkButton ID="LinkButton2" CommandName="Sort" ForeColor="Blue" CommandArgument="condicion" runat="server">FALTA RECEPCION</asp:LinkButton>
                </th>
                
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#eee":"#fff" %>'>
            <td>
               <%-- <asp:Image ID="PersonIcon" ImageUrl="~/images/individual.gif" Width="10px" Height="12px"
                    runat="server" />--%>
                <asp:Hyperlink runat= "server"  ForeColor="Blue" 
                Text='<%# DataBinder.Eval(Container.DataItem,"numDocumentoStr").ToString()%>'  
                 Target="_self"  ID="OrdenCompra"
                NavigateUrl='<%# "~/AlmacenAdmin/NotaIngresoInsertForm.aspx?type=A&idOC=" + 
                DataBinder.Eval (Container.DataItem,"idInternal").ToString() + 
                "&idAlmacen=" + DataBinder.Eval (Container.DataItem,"idAlmacen").ToString() + 
                 "&idObra=" + DataBinder.Eval(Container.DataItem,"idObra").ToString()%>' 
               />   
                
            </td>
            <td >
                    <%# Eval("fechaEmisionStr")%> <br />
            </td>
            <td >
                    <%# Eval("fechaEntregaStr")%> <br />
            </td>
             <td>
                <%# Eval("Proveedor")%><br />
            </td>
            
            <td align="right">
            <%# Eval("condicion")%><br />
                 
            </td>
          
           
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" style="">
            <tr>
                <td>
                    
                         <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>





    
     